#################################################################
## This Makefile Exported by MinGW Developer Studio
## Copyright (c) 2002-2004 by Parinya Thipchart
#################################################################

ifneq (,$(findstring Release, $(CFG)))
  override CFG = Release
else
  override CFG = Debug
endif

PROJECT = qlds
CC = "C:\MinGW\bin\gcc.exe"

AR = "$(COMPILER_BIN)ar.exe"
ifeq ($(CFG),Debug)
  OBJ_DIR = Debug
  OUTPUT_DIR = Debug
  TARGET = qlds.a
  C_INCLUDE_DIRS = -I"../../../../C++/boost_1_32_0" -I"../../../../C++/loki_alexandresku/loki" 
  C_PREPROC = 
  CFLAGS = -pipe  -Wall -g2 -O0 
  RC_INCLUDE_DIRS = 
  RC_PREPROC = 
  RCFLAGS = 
  ARFLAGS =  rcs
endif

ifeq ($(CFG),Release)
  OBJ_DIR = Release
  OUTPUT_DIR = Release
  TARGET = qlds.a
  C_INCLUDE_DIRS = -I"../../../../C++/boost_1_32_0" -I"../../../../C++/loki_alexandresku/loki" 
  C_PREPROC = 
  CFLAGS = -pipe  -Wall -g0 -O2 
  RC_INCLUDE_DIRS = 
  RC_PREPROC = 
  RCFLAGS = 
  ARFLAGS =  rcs
endif

ifeq ($(OS),Windows_NT)
  NULL =
else
  NULL = nul
endif

SRC_OBJS = \
  $(OBJ_DIR)/alloc.o	\
  $(OBJ_DIR)/alloc_atom.o	\
  $(OBJ_DIR)/alloc_context.o	\
  $(OBJ_DIR)/alloc_id.o	\
  $(OBJ_DIR)/alloc_list.o	\
  $(OBJ_DIR)/default_settings.o	\
  $(OBJ_DIR)/hash.o	\
  $(OBJ_DIR)/helpers.o	\
  $(OBJ_DIR)/list_manip.o	\
  $(OBJ_DIR)/memstat.o	\
  $(OBJ_DIR)/ql.o	\
  $(OBJ_DIR)/qleval.o	\
  $(OBJ_DIR)/qlreader.o

define build_target
@echo Creating library...
@$(AR) $(ARFLAGS) "$(OUTPUT_DIR)\$(TARGET)" $(SRC_OBJS)
endef

define compile_source
@echo Compiling $<
@$(CC) $(CFLAGS) $(C_PREPROC) $(C_INCLUDE_DIRS) -c "$<" -o "$@"
endef

.PHONY: print_header directories

$(TARGET): print_header directories $(SRC_OBJS)
	$(build_target)

.PHONY: clean cleanall

cleanall:
	@echo Deleting intermediate files for 'qlds - $(CFG)'
	-@del $(OBJ_DIR)\*.o
	-@del "$(OUTPUT_DIR)\$(TARGET)"
	-@rmdir "$(OUTPUT_DIR)"

clean:
	@echo Deleting intermediate files for 'qlds - $(CFG)'
	-@del $(OBJ_DIR)\*.o

print_header:
	@echo ----------Configuration: qlds - $(CFG)----------

directories:
	-@if not exist "$(OUTPUT_DIR)\$(NULL)" mkdir "$(OUTPUT_DIR)"
	-@if not exist "$(OBJ_DIR)\$(NULL)" mkdir "$(OBJ_DIR)"

$(OBJ_DIR)/alloc.o: ../../ql/alloc.c	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h
	$(compile_source)

$(OBJ_DIR)/alloc_atom.o: ../../ql/alloc_atom.c	\
../../ql/alloc_context_impl.h	\
../../ql/alloc_id.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h	\
../../ql/alloc_list.h	\
../../ql/alloc_atom.h
	$(compile_source)

$(OBJ_DIR)/alloc_context.o: ../../ql/alloc_context.c	\
../../ql/alloc_context_impl.h	\
../../ql/alloc_id.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h	\
../../ql/alloc_list.h	\
../../ql/alloc_atom.h	\
../../ql/default_settings.h
	$(compile_source)

$(OBJ_DIR)/alloc_id.o: ../../ql/alloc_id.c	\
../../ql/alloc_context_impl.h	\
../../ql/alloc_id.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h	\
../../ql/alloc_list.h	\
../../ql/alloc_atom.h
	$(compile_source)

$(OBJ_DIR)/alloc_list.o: ../../ql/alloc_list.c	\
../../ql/alloc_list.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h	\
../../ql/alloc_context_impl.h	\
../../ql/alloc_id.h	\
../../ql/alloc_atom.h
	$(compile_source)

$(OBJ_DIR)/default_settings.o: ../../ql/default_settings.c	\
../../ql/default_settings.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h
	$(compile_source)

$(OBJ_DIR)/hash.o: ../../ql/hash.c	\
../../ql/hash.h
	$(compile_source)

$(OBJ_DIR)/helpers.o: ../../ql/helpers.c	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/helpers.h
	$(compile_source)

$(OBJ_DIR)/list_manip.o: ../../ql/list_manip.c	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h
	$(compile_source)

$(OBJ_DIR)/memstat.o: ../../ql/memstat.c	\
../../ql/helpers.h	\
../../ql/alloc_context_impl.h	\
../../ql/alloc_id.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/list_manip.h	\
../../ql/alloc_list.h	\
../../ql/alloc_atom.h
	$(compile_source)

$(OBJ_DIR)/ql.o: ../../ql/ql.c	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h
	$(compile_source)

$(OBJ_DIR)/qleval.o: ../../ql/qleval.c	\
../../ql/eval_impl.h	\
../../ql/qleval.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h
	$(compile_source)

$(OBJ_DIR)/qlreader.o: ../../ql/qlreader.c	\
../../ql/qlreader.h	\
../../ql/ql.h	\
../../ql/config.h	\
../../fixincludes/stdbool.h	\
../../ql/error.h	\
../../ql/error_defs.h	\
../../ql/objtypes.h	\
../../ql/hash.h	\
../../ql/alloc.h	\
../../ql/alloc_context.h	\
../../ql/helpers.h	\
../../ql/list_manip.h
	$(compile_source)

